<template>
    <view class="zxPage bg-fff">
        <view class="listBox bg-fff">
            <block v-for="(item,index) in list" :key="index">
                <view class="itemBox">
                    <view class="itemTh title col-fff font16 bg-theme">{{item.title}}</view>
                    <view class="itemTh flex"><text class="lableTit">地址：</text><view class="cont">{{item.address}}</view></view>
                    <view class="itemTh itemBg flex"><text class="lableTit">电话：</text><view class="cont">{{item.phone}}</view></view>
                    <view class="itemTh flex"><text class="lableTit">时间：</text><view class="cont">{{item.time}}</view></view>
                    <view class="itemTh itemBg flex"><text class="lableTit">方式：</text><view class="cont">{{item.type}}</view></view>
                    <view class="itemTh flex"><text class="lableTit">轨交：</text><view class="cont">{{item.metro}}</view></view>
                </view>
            </block>
        </view>
        <view class="empty flex font13 col-grey">暂无更多</view>
        <share-btn :display="scrollAnimate"></share-btn>
    </view>
</template>

<script>
    import { mapState, mapActions } from 'pinia';
    import { useUserInfoStore, useConfigStore } from '@/store/index';
    // import { dispatchClient } from '@/common/api-adviser';
    import { isBoolean } from '@/common/common';
    export default {
        data() {
            return {
                list: [{
                    title: "人行征信中心上海市分中心",
                    address: "南苏州路333号，华隆大厦",
                    phone: "021—23136373",
                    time: "周一至周五 9:00—11:30/13:30—16:30",
                    type: "柜台or自助查询机",
                    metro: "2号线南京东路，10号线12号线天潼路站"
                },{
                    title: "工商银行上海分行",
                    address: "中山东一路24号",
                    phone: "021-53312999*1022",
                    time: "周一至周五 9:00—17:00  周六 9:00—12:00/13:30—17:00",
                    type: "自助查询机",
                    metro: "2号线，10号线南京东路"
                },{
                    title: "工商银行南市支行",
                    address: "陆家浜路275号",
                    phone: "021—63135123/63135889",
                    time: "周一至周五 9:00—17:00  周六 9:00—16:00",
                    type: "自助查询机",
                    metro: "4号线南浦大桥站"
                },{
                    title: "杭州银行上海分行",
                    address: "中山东二路558号",
                    phone: "021—63798987",
                    time: "周一至周五 9:00-17:00",
                    type: "自助查询机",
                    metro: "10号线愚园路站"
                },{
                    title: "民生银行黄浦支行",
                    address: "威海路48号",
                    phone: "021—53857099",
                    time: "周一至周五 9:00-17:00  周六 周日9:00-12:00/13:00-17:00",
                    type: "自助查询机",
                    metro: "1号线、2号线、8号线人民广场站"
                },{
                    title: "中信银行南京东路支行",
                    address: "南京东路61号1楼",
                    phone: "021—63236550",
                    time: "周一至周五 9:00-17:00  周日 9:00-17:00",
                    type: "自助查询机",
                    metro: "2号线、10号线南京东路站"
                },{
                    title: "上海市自有贸易试验区查询点",
                    address: "基隆路9号1层35号柜台",
                    phone: "021—58695031",
                    time: "周一至周五 9:00-11:30/13:30-16:30",
                    type: "柜台",
                    metro: "6号线外高桥保税区北站"
                },{
                    title: "兴业银行自贸区支行",
                    address: "张杨路1649号",
                    phone: "021—68599018",
                    time: "周一至周五 9:00-16:30  周六周日 9:00-16:00",
                    type: "自助查询机",
                    metro: "6号线民生路站"
                },{
                    title: "上海农商银行浦东分行",
                    address: "上南路1318号",
                    phone: "021-962999/68700013",
                    time: "周一至周五 8:45-16:30",
                    type: "自助查询机",
                    metro: "8号线成山路站"
                },{
                    title: "工商银行周家渡支行",
                    address: "耀华路12号",
                    phone: "021-58867122/50567751",
                    time: "周一至周五 9:00-17:00  周日 9:00-16:00",
                    type: "自助查询机",
                    metro: "7号线、8号线耀华路站"
                },{
                    title: "工商银行联洋第二支行",
                    address: "长柳路68号",
                    phone: "021-68540873/68543540",
                    time: "周一至周日 9:00-17:00",
                    type: "自助查询机",
                    metro: "9号线杨高中路站"
                },{
                    title: "工商银行川沙支行",
                    address: "川沙路4599号",
                    phone: "021-68651382/58921424",
                    time: "周一至周日 8:30-16:30",
                    type: "自助查询机",
                    metro: "二号线华夏东路站"
                },{
                    title: "平安银行浦南支行",
                    address: "浦东南路1351号",
                    phone: "021-58827092/58827095",
                    time: "周一至周五 9:00-17:00",
                    type: "自助查询机",
                    metro: "9号线商城路站"
                },{
                    title: "民生银行上海分行",
                    address: "浦东南路100号",
                    phone: "021-61877072",
                    time: "周一至周五 9:00-17:00",
                    type: "自助查询机",
                    metro: "2号线陆家嘴站，4号线浦东大道"
                },{
                    title: "工商银行南京西路支行",
                    address: "南京西路999号",
                    phone: "021—62153302/62537130",
                    time: "周一至周日 9:30—17:30",
                    type: "自助查询机",
                    metro: "2号线、10号线、12号线南京西路站"
                },{
                    title: "平安银行常熟支行",
                    address: "常熟路8号",
                    phone: "021-32504930",
                    time: "周一至周五 9:00—17:00",
                    type: "自助查询机",
                    metro: "1号线、7号线常熟路站"
                },{
                    title: "南京银行上海分行",
                    address: "中山北路933号",
                    phone: "021—66066888",
                    time: "周一至周五 9:00—17:00  周六、 周日9:00—12:00/13:00-16:30",
                    type: "自助查询机",
                    metro: "1号线中山北路站"
                },{
                    title: "中信银行大宁支行",
                    address: "万荣路700号A1幢",
                    phone: "021—36568882",
                    time: "周一至周六 9:00-17:00",
                    type: "自助查询机",
                    metro: "1号线上海马戏城站"
                },{
                    title: "中国银行徐汇支行",
                    address: "虹桥路355号二楼",
                    phone: "021—34601817/34601188",
                    time: "周一至周五 9:30—17:00",
                    type: "自助查询机",
                    metro: "1号线、9号线、11号线徐家汇站"
                },{
                    title: "建设银行徐汇支行",
                    address: "衡山路920号",
                    phone: "021-64070150",
                    time: "周一至周六 9:00—16:30",
                    type: "自助查询机",
                    metro: "1号线、9号线、11号线徐家汇站"
                },{
                    title: "工商银行东安支行",
                    address: "宛平南路521号",
                    phone: "021—64862667/64285296",
                    time: "周一至周六 9:00—17:00",
                    type: "自助查询机",
                    metro: "4号线、7号线东安路站"
                },{
                    title: "上海农商银行淞虹路支行",
                    address: "淞虹路152号一层",
                    phone: "021—962999/62782856",
                    time: "周一至周五8:15—16:30",
                    type: "自助查询机",
                    metro: "2号线淞虹路站"
                },{
                    title: "浦发银行长宁支行",
                    address: "长宁路855号",
                    phone: "021-62401568",
                    time: "周一至周日 9:00—18:00",
                    type: "自助查询机",
                    metro: "2号线、4号线中山公园站"
                },{
                    title: "工商银行古北新区支行",
                    address: "黄金城道918号",
                    phone: "021—62783350/32121025-610",
                    time: "周一至周日 9:00—17:00",
                    type: "自助查询机",
                    metro: "10号线水城路站"
                },{
                    title: "北京银行杨浦支行",
                    address: "黄兴路1816号",
                    phone: "021—55785030",
                    time: "周一至周六 9:00—16:30",
                    type: "自助查询机",
                    metro: "10号线国权路站"
                },{
                    title: "平安银行金沙江支行",
                    address: "宁夏路777号",
                    phone: "021—32589119",
                    time: "周一至周五 9:00—17:00  周六、周日10:00—16:00",
                    type: "自助查询机",
                    metro: "4号线、13号线金沙江路"
                },{
                    title: "工商银行莘庄支行",
                    address: "莘松路288号",
                    phone: "021—64983092/64216070-111",
                    time: "周一至周日 8:30—16:30",
                    type: "自助查询机",
                    metro: "5号线莘庄站"
                },{
                    title: "工商银行大华支行",
                    address: "华灵路688号",
                    phone: "021—66344151",
                    time: "周一至周日 9:00—17:00",
                    type: "自助查询机",
                    metro: "7号线大华三路站"
                },{
                    title: "工商银行嘉定支行",
                    address: "德富路1288号",
                    phone: "021—59910371",
                    time: "周一至周五 9:00—17:00",
                    type: "自助查询机",
                    metro: "11号线白银路站"
                },{
                    title: "工商银行青浦支行",
                    address: "城中东路485号",
                    phone: "021—59738201",
                    time: "周一至周日 8:30—16:30",
                    type: "自助查询机",
                    metro: "17号线青浦新城站"
                },{
                    title: "工商银行九亭支行",
                    address: "九亭大街582号",
                    phone: "021—57631451",
                    time: "周一至周五 8:45—16:15  周日8:45—16:15",
                    type: "自助查询机",
                    metro: "9号线九亭站"
                },{
                    title: "工商银行奉贤支行",
                    address: "南奉公路7809号",
                    phone: "021—57102755",
                    time: "周一至周六 9:00—16:30",
                    type: "自助查询机",
                    metro: "5号线延伸奉贤新城站（暂未开通"
                },{
                    title: "工商银行奉贤支行",
                    address: "南奉公路7809号",
                    phone: "021—57102755",
                    time: "周一至周六 9:00—16:30",
                    type: "自助查询机",
                    metro: "5号线延伸奉贤新城站（暂未开通）"
                }],
                scrollAnimate: false,
                productId: '',
                title: '',
                share: false,
                start_time: 0
            }
        },
        computed:{
            ...mapState(useUserInfoStore, ['userInfo'])
        },
        onShareAppMessage(res) {
            return {
                title: `征信打印网点查询`,
                path: `/pages/tools/zheng-xin/wang-dian?productId=${this.productId}&title=${this.title}&puid=${this.userInfo.id}&share=true&prepage=征信网点-${this.productId}-${this.title}`,
            }
        },
        onLoad(options) {
            const that = this;
            let { productId='', title='', puid='', share=false } = options;
            this.productId = productId&&productId!=='undefined'?productId:'';
            if(title&&title!=='undefined') {
                this.title = title;
            }
            if(puid&&puid!=='undefined') {
                this.setPuid(puid)
            }
            this.share = isBoolean(share);
            this.start_time = (new Date()).getTime();
            uni.$check_and_login(function () {
                //绑定客户
                // dispatchClient({
                //     share: that.share,
                //     puid: puid,
                //     pid: that.productId
                // });
            })
        },
       
        onPageScroll() {
            const that = this;
            that.scrollAnimate = true;
            this.$u.debounce(function() {
                that.scrollAnimate = false;
            }, 500);
        },
        methods: {
            ...mapActions(useConfigStore, ['setPuid'])
        }
    }
</script>

<style scoped lang="scss">
    .zxPage{
        min-height: 100vh;
        overflow: hidden;
        line-height: 1;
        .listBox{
            border-radius: 20rpx;
            padding: 0rpx 50rpx 40rpx 50rpx;
            overflow: hidden;
            .itemBox{
                line-height: 1.3;
                margin-top: 40rpx;
                border: 2rpx solid #333333;
                .itemTh{
                    padding: 10rpx 15rpx;
                    justify-content: flex-start;
                    align-items: flex-start;
                    flex-wrap: wrap;
                    .lableTit{
                        width: 100rpx;
                    }
                    .cont{
                        width: calc(100% - 100rpx);
                    }
                }
                .itemBg{
                    background-color: $bg-primary-opacity;
                }
            }
        }
    }
</style>
